package com.example.service;

import com.example.entity.Orders;
import com.example.entity.OrdersCustom;
import com.example.mapper.OrdersCustomMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className OrdersCustomService
 * @Description TODO
 * @Author YUjiangpeng
 * @Date 2020/6/17 0:01
 * @Version 1.0
 **/
@Service
public class OrdersCustomService {

    @Autowired
    private OrdersCustomMapper ordersCustomMapper;

    public  List<OrdersCustom> findOrdersUser(){

        return  ordersCustomMapper.findOrdersUser();
    }

    public List<Orders> findOrdersUserByResultMap(){
        return  ordersCustomMapper.findOrdersUserResultMap();
    }

    public List<Orders> findOrdersAndOrderDetailResultMap(){
        return  ordersCustomMapper.findOrdersAndOrderDetailResultMap();
    }
}
